﻿<UserControl x:Class="EasyPainter.Imaging.Silverlight.EditableSlider"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    >

	<StackPanel>
		<Grid Name="GridText">
			<TextBlock x:Name="textValue" Text="25" HorizontalAlignment="Right" Padding="5,0,5,0" IsHitTestVisible="False" />
			<TextBlock Text="{Binding Description}" HorizontalAlignment="Left" Padding="5,0,5,0" IsHitTestVisible="False" />
		</Grid>
		<Grid Cursor="SizeWE" HorizontalAlignment="Stretch" Height="35" x:Name="rootGrid">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>
			<Rectangle x:Name="rectBase" 
					   Fill="#FFB1B1B1"
					   VerticalAlignment="Stretch"  
					   ManipulationStarted="RectBaseManipulationStarted"
					   ManipulationCompleted="RectBaseManipulationCompleted"
					   ManipulationDelta="RectBaseManipulationDelta"/>
			<Rectangle x:Name="rectPercent" 
					   IsHitTestVisible="False" 
					   Fill="{StaticResource PhoneAccentBrush}" 
					   StrokeThickness="0" 
					   VerticalAlignment="Stretch" 
                       HorizontalAlignment="Left"
                       Width="100" 
					   ManipulationStarted="RectBaseManipulationStarted"
					   ManipulationCompleted="RectBaseManipulationCompleted"
					   ManipulationDelta="RectBaseManipulationDelta"/>
		</Grid>
	</StackPanel>
</UserControl>
